package com.dhcc.bpm.modules.content.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

/**
 * @ClassName DocDirectory
 * @Description DocDirectory实体类
 * @Author lijiacheng
 * @Date 2020/2/21 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Data
@TableName("opc_doc_directory")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "DocDirectory对象", description = "文档目录")
public class DocDirectory extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 文档名称
     */
    @ApiModelProperty(value = "文档名称")
    private String docName;
    /**
     * 文档编号
     */
    @ApiModelProperty(value = "文档编号")
    private String docCode;
    /**
     * 父菜单ID
     */
    @ApiModelProperty(value = "父菜单ID")
    private String parentId;
    /**
     * 显示顺序
     */
    @ApiModelProperty(value = "显示顺序")
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private Integer orderNum;
    /**
     * 请求地址
     */
    @ApiModelProperty(value = "请求地址")
    private String url;
    /**
     * 权限标识 1.门户登陆后可下载；2.门户认证后可下载；3.可以下载
     */
    @ApiModelProperty(value = "权限标识")
    private String authority;

    /**
     * 文档类型
     */
    @ApiModelProperty(value = "文档类型")
    private String docType;
    /**
     * 权限标识
     */
    @ApiModelProperty(value = "权限标识")
    private String perms;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
		@TableField(value = "`describe`")
    private String describe;

    /**
     * 源文件存储路径
     */
    @ApiModelProperty(value = "源文件存储路径")
    private String originalPath;


    /**
     * 关联id
     */
    @ApiModelProperty(value = "关联id")
    private String relateId;
}
